<html><head><title>Mid</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">Mid()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result$ = <font color="#006666"><b>Mid</b></font>(String$, StartPosition [, Length])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Extracts a string of specified length from the given string. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>String$</i></td>
<td width="90%"> 
The string to use. 

</td></tr>
<tr><td><i>StartPosition</i></td>
<td> 
Specifies the character position to start the extracting. The first character position is 1. 

</td></tr>
<tr><td><i>Length (optional)</i></td>
<td> 
Specifies how many characters needs to be extracted. If this parameter is omitted, characters 
are extracted until the end of string. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

A new string holding the extracted characters. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#006666">Mid</font>("Hello", 2) <font color="#006666">; Will display "ello"</font>
  <b><font color="#006666">Debug</font></b> <font color="#006666">Mid</font>("Hello", 2, 1) <font color="#006666">; Will display "e"</font>
</font></pre>

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=len.html>Len()</a> - <a href=index.html>String Index</a> - <a href=rset.html>RSet()</a> ->

</body></html>